<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>任务详情</title>
    <jsp:include page="common/common_head.jsp"></jsp:include>


</head>
<body data-spy="scroll" data-target=".navbar">


<jsp:include page="common/common_banner_app.jsp"></jsp:include>
<div style="height:30px"></div>



<div class="alert alert-info">
    <a class="close" data-dismiss="alert">×</a>
    <strong>Info!</strong>    ${msg}
</div>


<div class="container" id="">
    <c:forEach items="${srs}" var="sr" varStatus="srv">
        <div>步骤 (${srv.index + 1}): ${sr.name}</div>
        <table class="table  table-striped table-bordered table-hover " id="showTable">

            <thead>
            <tr>
                <th>序号</th>
                <th>任务号</th>
                <th>执行服务器名称</th>
                <th>超时</th>
                <th>完成</th>
                <th>失败</th>
                <th>执行信息</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${sr.rs.taskInfos}" var="c" varStatus="v">
                <tr>
                    <td>${v.index + 1}</td>
                    <td><a target="_blank" href="/app/shellCommandExecuteDetail.html?taskId=${c.task.taskId}&hostName=${c.task.hostName}">${c.task.taskId}</a></td>
                    <td>${c.task.hostName}</td>
                    <td>${c.status.isTimeout}</td>
                    <td>${c.status.finished}</td>
                    <td>${c.status.isError}</td>
                    <td>${c.message}</td>
                </tr>
            </c:forEach>

            </tbody>

        </table>
    </c:forEach>



    <jsp:include page="common/common_js.jsp"></jsp:include>


    <script>

    </script>
</body>
</html>